<%@ page import="union.Colaborador" %>

<h3>Dados de colaborador</h3>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="colaborador.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" required="" value="${colaboradorInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'matricula', 'error')} required">
	<label for="matricula">
		<g:message code="colaborador.matricula.label" default="Matricula" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="matricula" required="" value="${colaboradorInstance?.matricula}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="colaborador.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" required="" value="${colaboradorInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'telefone', 'error')} required">
	<label for="telefone">
		<g:message code="colaborador.telefone.label" default="Telefone" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="telefone" required="" value="${colaboradorInstance?.telefone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'egerente', 'error')} ">
	<label for="egerente">
		<g:message code="colaborador.egerente.label" default="Egerente" />
		
	</label>
	<g:checkBox name="egerente" value="${colaboradorInstance?.egerente}" />
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'cargo', 'error')} required">
	<label for="cargo">
		<g:message code="colaborador.cargo.label" default="Cargo" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cargo" name="cargo.id" from="${union.Cargo.list()}" optionKey="id" required="" value="${colaboradorInstance?.cargo?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'complexidade', 'error')} required">
	<label for="complexidade">
		<g:message code="colaborador.complexidade.label" default="Complexidade" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="complexidade" name="complexidade.id" from="${union.ComplexidadeCargo.list()}" optionKey="id" required="" value="${colaboradorInstance?.complexidade?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: colaboradorInstance, field: 'funcao', 'error')} required">
	<label for="funcao">
		<g:message code="colaborador.funcao.label" default="Funcao" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="funcao" name="funcao.id" from="${union.Funcao.list()}" optionKey="id" required="" value="${colaboradorInstance?.funcao?.id}" class="many-to-one"/>
</div>


